<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>显示日期</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            margin-top: 50px;
        }
        #date {
            font-size: 24px;
            color: #333;
        }
    </style>
</head>
<body>
    <h1>当前日期</h1>
    <p id="date"></p>

    <script>
        function formatDate(date) {
            const options = { year: 'numeric', month: 'long', day: 'numeric' };
            return date.toLocaleDateString('zh-CN', options);
        }

        document.addEventListener('DOMContentLoaded', () => {
            const dateElement = document.getElementById('date');
            const currentDate = new Date();
            dateElement.textContent = formatDate(currentDate);
        });
    </script>
</body>
</html>